﻿@model wUniApp.MVC.App_Data.Execution

@{
    ViewBag.Title = wUniApp.MVC.App_GlobalResources.Resources.Details;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@Html.GetTitle()

<div>
    <h4>Execution</h4>
    <hr />
  
  <!-- vyuzitie DisplayForModel a scaffoldingu v MetaDatach pre Execution -->
  <table cellpadding="10" cellspacing="10" width="1000">
    <tr style="background:#cedce8">
      <td width="50%"><h4>.DisplayNameFor() / .DisplayFor()</h4></td>
      <td width="50%"><h4>.DisplayForModel()</h4></td>
    </tr>
    <tr>
      <td>
        <dl class="dl-horizontal">
          <dt>
            @Html.DisplayNameFor(model => model.Customer.FirstName)
          </dt>

          <dd>
            @Html.DisplayFor(model => model.Customer.FirstName)
          </dd>

          <dt>
            @Html.DisplayNameFor(model => model.Description)
          </dt>

          <dd>
            @Html.DisplayFor(model => model.Description)
          </dd>

          <dt>
            @Html.DisplayNameFor(model => model.AmountDue)
          </dt>

          <dd>
            @Html.DisplayFor(model => model.AmountDue)
          </dd>

        </dl>
      </td>
      <td>
        @Html.DisplayForModel()
      </td>

    </tr>
  </table>
</div>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |
    @Html.BackToList()
</p>
